﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

namespace ProjectBase.Core.Settings
{
    /// <summary>
    ///     This object could be used for authorization.
    ///     Provided properties Action and Cntroller should be treated as Write 
    ///     (with impacts to storage)
    /// </summary>
    public class WriteAction
    {
        /// <summary>
        ///     Action name - if Controller is null nor empty
        ///     then it should be applied to every Controller
        /// </summary>
        public virtual string Action { get; set; }

        /// <summary>
        ///     More specific Action targeting could be done
        ///     by setting the controller name
        /// </summary>
        public virtual string Controller { get; set; }
    }
}